#ifndef DATAUSER_H
#define DATAUSER_H

#include <QObject>
#include <iostream>
#include <QSqlRecord>

class User
{

public:
    User(){
        m_id = -1;
        m_currentVocabularyId = -1;
        m_groupSize = -1;
        m_currentVocabularyName = "";
        m_currentGroup = 0;
    }
    int id() const;
    void setId(int newId);
    int currentVocabularyId() const;
    void setCurrentVocabularyId(int newCurrentVocabularyId);
    int groupSize() const;
    void setGroupSize(int newGroupSize);

    void parseRecord(const QSqlRecord&);

    const std::string &currentVocabularyName() const;
    void setCurrentVocabularyName(const std::string &newCurrentVocabularyName);

    int currentGroup() const;
    void setCurrentGroup(int newCurrentGroup);

private:
    int m_id;
    int m_currentVocabularyId;
    std::string m_currentVocabularyName;
    int m_groupSize;
    int m_currentGroup;
};

#endif // DATAUSER_H
